import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/login' //登录
import register from '@/components/register' //注册
import Preg from '@/components/Preg' //个人注册
import Oreg from '@/components/Oreg' //机构注册 
import FoundPsw from '@/components/FoundPsw' //找回密码
import Person from '@/components/Person' //个人界面 
import setPerson from '@/components/setPerson' //设置个人信息 
import Origanization from '@/components/Origanization' //组织界面  
import Authentication from '@/components/Authentication' //组织认证
import adminLogin from '@/components/adminLogin'  //后台界面
import Oshenhe from '@/components/Oshenhe'  //组织审核
import setO from '@/components/setO'  //组织审核
import userControl from '@/components/userControl'  //用户管理
import Ocontrol from '@/components/Ocontrol'  //组织管理
import search from '@/components/search'  //搜索
import jilu from '@/components/jilu.vue' //组织服务记录
import jilu2 from '@/components/jilu2.vue' //个人服务记录
import index from '@/components/Index/index'
import add from '@/components/Find/add'
import mine from '@/components/Mine/mine'
import share from '@/components/Share/share'
import find from '@/components/Find/find'
import detail from '@/components/Find/detail'
import actmanage from '@/components/Index/actmanage'
import actmanagedetail from '@/components/Index/actmanagedetail'
import myacts from '@/components/Index/myacts'
import fdetail from '@/components/Share/fdetail'
import tdetail from '@/components/Share/tdetail'
import sdetail from '@/components/Share/sdetail'
import fourdetail from '@/components/Share/fourdetail'
import signin from '@/components/Find/signin'
Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      component: index
    }, {
      path: '/index',
      name: 'index',
      component: index
    }, {
      path: '/find/add',
      name: 'add',
      component: add
    }, {
      path: '/mine',
      name: 'mine',
      component: mine
    }, {
      path: '/share',
      name: 'share',
      component: share
    }, {
      path: '/find',
      name: 'find',
      component: find
    }, {
      path: '/find/detail',
      name: 'detail',
      component: detail
    }, {
      path: '/login',
      name: 'login',
      component: login
    }, {
      path: '/register',
      name: 'register',
      component: register
    }, {
      path: '/register/Preg',
      name: 'Preg',
      component: Preg
    }, {
      path: '/register/Oreg',
      name: 'Oreg',
      component: Oreg
    }, {
      path: '/FoundPsw',
      name: 'FoundPsw',
      component: FoundPsw
    }, {
      path: '/Person',
      name: 'Person',
      component: Person
    },
    {
      path: '/Origanization',
      name: 'Origanization',
      component: Origanization
    },
    {
      path: '/Origanization/Authentication',
      name: 'Authentication',
      component: Authentication
    },

    {
      path: '/Person/setPerson',
      name: 'setPerson',
      component: setPerson
    },
    {
      path: '/adminLogin',
      name: 'adminLogin',
      component: adminLogin
    },
    {
      path: '/Oshenhe',
      name: 'Oshenhe',
      component: Oshenhe
    },
    {
      path: '/setO',
      name: 'setO',
      component: setO
    },
    
    {

      path: '/index/actmanage',
      name: 'actmanage',
      component: actmanage
    },
    {
      path: '/userControl',
      name: 'userControl',
      component: userControl
    },
    {
      path: '/Ocontrol',
      name: 'Ocontrol',
      component: Ocontrol
    },
    {
      path: '/index/actmanage/actmanagedetail',
      name: 'actmanagedetail',
      component:actmanagedetail
    },
    {
      path: '/search',
      name: 'search',
      component:search
    },
    {
      path: '/index/myacts',
      name: 'myacts',
      component:myacts
      
    }, {
      path: '/share/sdetail',
      name: 'sdetail',
      component: sdetail
    }, {
      path: '/share/tdetail',
      name: 'tdetail',
      component: tdetail
    }, {
      path: '/share/fourdetail',
      name: 'fourdetail',
      component: fourdetail
    }, {
      path: '/share/fdetail',
      name: 'fdetail',
      component: fdetail
    },
    {
      path: '/jilu',
      name: 'jilu',
      component: jilu
    },
    {
      path: '/jilu2',
      name: 'jilu2',
      component: jilu2
    },
    
    ,
    {
      path: '/signin',
      name: 'signin',
      component: signin
    },
  ]
})
